import request from "../utils/request";

export const CreateSpider = (data) => {
	return new Promise((resolve, reject) => {
		request("/api/spider/createSpider", data, "get")
			.then(res => {
				resolve(res)
			})
			.catch(err => {
				reject(err)
			})
	})
};


export const GetMovies = (data) => {
	return new Promise((resolve, reject) => {
		request("/api/spider/getList", data, "post")
			.then(res => {
				resolve(res)
			})
			.catch(err => {
				reject(err)
			})
	})
};
